﻿@model PagedList<prohomework.Models.Article>
@using Webdiyer.WebControls.Mvc;
@{
    ViewBag.Title = "文章列表";
}


<table>
    <tr>
        <th>
           序号
        </th>
        <th>
          标题
        </th>
        <th>
           发布日期
        </th>
        <th>
           作者
        </th>
        <th>
          点击数
        </th>
    </tr>



@foreach (var item in Model)
{
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.xuhao)
        </td>
        <td>
            
            @Html.ActionLink(item.AT_Title, "ArticleShow",new {ID=item.AT_ID })
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AT_updatetime)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AT_AuthorName)
        </td>

        <td>
            @Html.DisplayFor(modelItem =>item.AT_hits)
        </td>
    </tr>
}

</table>
@Html.Pager(Model, new PagerOptions()
   {
       PageIndexParameterName = "id",
       ShowPageIndexBox = true,
       ShowGoButton = true,
       PageIndexBoxWrapperFormatString = "跳转到第{0}页"
   })